﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using CMS.DataAccess;
using CMS.BaseEntity;

namespace CMS.DataAccess
{
    public class UserAccess
    {
        public static DataTable GetUserLogin(User user)
        {
            return DataAccess.ExeStoredWithParamToDataTable(
                "cusp_UserSelectForLogin",
                "@UserName", user.UserName,
                "@Password", user.Password);
        }

        public static DataTable GetUserInfoById(User user)
        {
            return DataAccess.ExeStoredWithParamToDataTable("cusp_UserSelectAllById", "@UserId", user.UserId);
        }
    }
}